package com.heima.wemedia.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.model.wemedia.pojos.WmNewsMaterial;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WmNewsMaterialMapper extends BaseMapper<WmNewsMaterial> {
    /**
     * 文章图片与图片素材关系批量插入
     * @param idList
     * @param newsId
     * @param type
     */
    void saveRelations(@Param("idList") List<Integer> idList,@Param("newsId") Integer newsId,@Param("type") Short type);
}
